/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.worlds.net;

import java.awt.Color;
import java.util.Date;

/**
 *
 * @author Jacob Morgan
 */
public class ChatMessage {
    private String message;
    private long start;
    private Color color;
    public ChatMessage(String m, int r, int g, int b)
    {
        message = m;
        start = new Date().getTime();
        color = new Color(r, g, b);
    }
    public int getAge()
    {
        return (int) (new Date().getTime() - start);
    }
    public Color getColor()
    {
        return color;
    }
    public String getMessage()
    {
        return message;
    }
}
